NetCacheResolver 0.9d6 - an AppleScriptable helper program
Copyright (C)1995-96 Mizutori Tetsuya
This is a freeware program.
-- May 12, 1996
NetCacheResolver is a helper program to my AppleScript application NetCacheBack, that is to resolve the encapsulated cache files of Netscape Navigator 1.1N and 2.0ユs. Among these versions, there comes about some changes in the record format of the cache log database. NetCacheResolver converts the 2.0ユs CCache log datatabe to 1.1Nユs Cache log one. This is an AppleScriptable application, such that it responds and sends back the resolved records to NetCacheBack client application on demands.
NetCacheResolver is written as an AppleScript document, so it requires System 7.5 or later. Or, you need the relative version of scriptable Finder and other Scripting Additions.
*** IMPORTANT ***
For the Netscape Navigator 2.0ユs users, please notice that my reverse-engineering on cache log database is not a perfect work. Maybe or not, I wonder the format of database will be changed in the future versions of beta or final release of 2.0ユs. Even if so, I am catching up with the new frontier as possible. Please keep up on the future release of my helper program NetCacheResolver for the new coming cache log databases.
・ Usage
There are three ways to handle this program to get Cache log record.
・ ONE: Open the "CCache log" file from the メOpen...モ menu command
After this operation on CCache log file, you will get a new Cache log file of 1.1N format in the same folder.
・ TWO: Drag and drop the "CCache log" file onto NetCacheResolver icon
Select the CCache log file and drop it to the NetCacheResolver icon. Then you will get a new Cache log file of 1.1Nユs one in the same folder.
・ THREE: Send メopenモ or メresolveモ command to NetCacheResolver
Following this command, the client application NetCacheBack gets the Cache log file in the Cache folder (by メopenモ command) or receives the Cache log data records as a reply message (by メresolveモ command). Let me show an example.
tell application "Finder"
set the cachelog to (choose file of type {"DBMC"})
tell application "NetCacheResolver"
--open {cachelog}
set cacheRecordList to resolve {cachelog}
quit
end tell
end tell
・ AppleScript Commands of NetCacheResolver
Required Suite:
open alias -- Resolve the CCache log and create Cache log
print alias -- (do nothing)
run -- Sent to an application when it is double-clicked
quit -- Quit application
Net Cache Resolver:
resolve alias -- Resolve the CCache log file(s)
[with sorted by name/date/size/type/url]
Result: list -- list of resolved records
sort list -- the list of items to sort, Cache log Record
[at integer] -- field number, beginning with 1
[by name/date/size/type/url] -- by sorting method
[in regular/reverse] -- order form
[as alphabet/number] -- evaluating type
[with string] -- field separator, eg. space or tab
-- no operation, definitions only; for the constants of view selected for the window
show about -- Show about this application
・ Changes since 0.9d5, October 26, 1995
Yesterday (oh, what is today?:-), I encountered an Unidentified Field Object in the CCache log database. This latent field, which I called メexportモ, was an unexpected one, though I think most users may not have suffered from it. NetCacheResolver failed to resolve it properly. I fixed it.
・ Changes since 0.9d4, October 22, 1995
Some rare case happens that cache file records are come up against an exceptional field named メcontent-typeモ. Have you ever in the Web world met with them? NetCacheResolver failed to resolve it properly. I fixed it.
・ Changes since 0.9d3, October 15, 1995
NetCacheResolver returns the cache log records, sorted in the right order by Name, Date, Size, and others. Due to this sorting, NetCacheBack search method becomes much easier and more radid for querying the database. Typically it runs over 2 to 20 times faster than the previous version. Or, the operating time for each query is kept constant, independent of the database size.
・ Files included are ...
1. NetCacheResolver -- an AppleScriptable helper application
2. NetCacheResolver source -- source code written in CodeWarrior DR/8
3. NetCacheResolver readme -- just this file you are reading
This is a freeware program. You can distribute it without any limitations nor permission.
・ About the NetCacheBack...
NetCacheBack resolves the cache files of Netscape Navigator 1.1N and 2.0ユs. Just drag and drop cache files like "cache123000-2" (or "cache123000.html") in the Cache folder onto NetCacheBack icon. Thatユs all what to do. Then they are renamed to proper names like "index.html" and moved to the right place of folder. If the folder does not exist, any new folder required is created automatically. Let me show the process as follows;
If you are using the Netscape Navigator 2.0ユs, NetCacheBack first tries to get Cache log data from the CCache log file of 2.0ユs with the help of NetCacheResolver.
For more information and its source code, please find this companion program at the internet communication directory of the メinfo-macモ archive sites, where I posted it separately. Also you can find them at my WWW software catalog page described below.